#ifndef	MESSAGEQUERYER_H
#define	MESSAGEQUERYER_H

#include "d3dUtil.h"
#include "MouseSubject.h"
#include "MouseListener.h"

class MessageQueryer : public MouseListener
{
public:
	void Init();

	static MessageQueryer* Instance();

	virtual void MouseUpdate(MouseMsg msg,const Point& oldPoint,const Point& currPoint);

	~MessageQueryer(void);

	bool MouseLeftButtonIsPress();

	bool MouseRightButtonIsPress();

	bool KeyboardIsPress();

private:
	MessageQueryer(void);
	MessageQueryer(const MessageQueryer&);
	MessageQueryer& operator=(const MessageQueryer&);


	void SetMouseLeftButton(bool state);

	void SetMouseRightButton(bool state);

private:
	bool		m_bMouseLeftButtonPress;
	bool		m_bMouseRightButtonPress;
};


#endif

